package org.hnxxxy.ebms.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.hnxxxy.ebms.pojo.TeacherAdmiss;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.hnxxxy.ebms.vo.TeacherAdmissVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author WANGWEI
 * @since 2021-06-10
 */
public interface TeacherAdmissMapper extends BaseMapper<TeacherAdmiss> {

    /**
     * 查询到老师管辖的地区id
     * @param userId
     * @return
     */
    List<Integer> selectByTeaId(Integer userId);

    IPage<TeacherAdmissVo> selectTeaAdmiss(IPage<TeacherAdmissVo> iPage);

    IPage<TeacherAdmissVo> selectTeaAdmissByName(IPage<TeacherAdmissVo> iPage, String name);
}
